<?php

//$http_method = strtoupper($_SERVER['REQUEST_METHOD']);

$url = urldecode(get_input('url', ''));

if ($url === '') {
    echo json_encode(array("status" => 500, "message" => "url can not be empty!"));
    exit;
}
$data = GgsSocialObjects::getUserLikes($url);
$data['url'] = $url;
echo json_encode(array("status" => 200, "data" => $data));